home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / totallys.swf / scripts / frame_438 / PlaceObject2_146_137 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-28  |  832 b   |  38 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.debut == 1)
  3.    {
  4.       mn = int((_root.timelimitelocal - _root.seconde) / 60);
  5.       sc2 = _root.seconde - t * 60;
  6.       if(sc2 == 60)
  7.       {
  8.          t++;
  9.          sc2 = 0;
  10.       }
  11.       _root.sc = 59 - sc2;
  12.       if(mn < 1)
  13.       {
  14.          _root.temps.gotoAndStop(2);
  15.          if(_root.fin == 0)
  16.          {
  17.             if(_root.seconde == _root.timelimitelocal)
  18.             {
  19.                _root.sc = 0;
  20.                _root.fin = 1;
  21.             }
  22.          }
  23.       }
  24.       if(_root.fin == 1)
  25.       {
  26.          _root.temps.temps = "-- : --";
  27.       }
  28.       else if(_root.sc < 10)
  29.       {
  30.          _root.temps.temps = mn add ":" add "0" add int(_root.sc);
  31.       }
  32.       else
  33.       {
  34.          _root.temps.temps = mn add ":" add int(_root.sc);
  35.       }
  36.    }
  37. }
  38.